﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RentModify.aspx.cs" Inherits="Admin.House.RentModify" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>修改承租人</title>
    <link href="/Admin/Css/rightbar.css?FileVersion=<%=FileVersion %>" rel="stylesheet"
        type="text/css" />
    <script src="/admin/Scripts/Calendar2008.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script src="/Admin/Scripts/jquery-1.4.1.min.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
    <script src="/admin/Scripts/Check.js?FileVersion=<%=FileVersion %>" type="text/javascript"></script>
</head>
<body id="wallet">
    <div class="warp">
        <div class="topnav">
            <ul>
                <li><a href="RentList.aspx"><span>承租人列表</span></a></li>
                <li><a href="javascript:void(0);" style="cursor: default;" class="on_nav"><span>承租人修改</span></a></li>
            </ul>
        </div>
        <div class="tab mt15">
            <ul>
                <li class="in_on"><strong>承租人登记</strong></li>
                <li class="caution01">带 <span class="org">*</span> 号为必填项目</li>
            </ul>
        </div>
        <div class="cont" style="padding-top: 8px;" id="stb8">
            <form name="form1" method="post" action="RentModify.aspx?action=Modify" id="form1">
            <input type="hidden" id="id" name="id" value="<%=id %>" />
            <table width="660" border="0" cellspacing="0" cellpadding="0" class="tb01">
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        <span class="org">*</span>房产证编号：
                    </td>
                    <td align="left" valign="top">
                        <%=rie.CertificateID %>
                        <spqn style="padding-left: 5px; color: Red;">
                            (房主：<%=rie.Name%>，身份证号：<%=rie.IDCardNum%>
                        )
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        <span class="org">*</span>承租人姓名：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.RentName %>" id="txtRentName" name="txtRentName"
                            class="input200_out" style="width: 240px;" maxlength="25" need="承租人姓名不能为空" /><span
                                class="gray pl10">请输入承租人姓名，不超过10个汉字</span>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        承租人身份证：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.RentIDCardNum %>" id="txtRentIDCardNum" name="txtRentIDCardNum"
                            class="input200_out" style="width: 240px;" /><span class="gray pl10">请输入承租人身份证号码</span>
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        手机号码：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.RentMobileCode %>" id="txtRentMobileCode" name="txtRentMobileCode"
                            class="input200_out" style="width: 240px;" mobile="手机号码格式错" maxlength="50" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        电话号码：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.RentTelephone %>" id="txtRentTelephone" name="txtRentTelephone"
                            class="input200_out" style="width: 240px;" maxlength="50" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        承租面积：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.RentArea %>" id="txtRentArea" name="txtRentArea"
                            class="input200_out" style="width: 240px;" maxlength="50" float="承租面积必须位数字" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        承租金额：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.RentPrice %>" id="txtRentPrice" name="txtRentPrice"
                            class="input200_out" style="width: 240px;" maxlength="50" float="承租金额必须位数字" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        门店名称：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.ShopName %>" id="txtShopName" name="txtShopName"
                            class="input200_out" style="width: 240px;" maxlength="25" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        承租日期：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<% =FormatData<DateTime>(rie.StartDate, "yyyy-MM-dd")%>"
                            id="txtStartDate" name="txtStartDate" class="input200_out" style="width: 106px;"
                            maxlength="50" date="承租开始日期格式错" />
                        -
                        <input type="text" value="<% =FormatData<DateTime>(rie.EndDate, "yyyy-MM-dd")%>"
                            id="txtEndDate" name="txtEndDate" class="input200_out" style="width: 106px;"
                            maxlength="50" date="承租结束日期格式错" />
                    </td>
                </tr>
                <tr>
                    <td align="right" valign="middle" bgcolor="#F9F9F9">
                        出租期限：
                    </td>
                    <td align="left" valign="top">
                        <input type="text" value="<%=rie.LimitDays %>" id="txtLimitDays" name="txtLimitDays"
                            class="input200_out" style="width: 240px;" maxlength="50" int="出租期限必须是数字" />
                    </td>
                </tr>
            </table>
            </form>
        </div>
        <div class="btudiv">
            <ul style="width: 180px;">
                <li>
                    <input name="Submit1" type="submit" id="Submit1" class="button_sure" onclick="return CheckForm()"
                        value="确认修改" /></li>
            </ul>
        </div>
    </div>
    <script type="text/javascript">
        var c = new Calendar("c");
        c.offsetTop = 30;
        document.write(c);

        $(function () {
            //为日期输入框增加日历控件
            $(":input[date]").bind("focus", function (event) {
                c.showMoreDay = false;
                c.show(this); this.
                className = 'input60_on';
                this.onmouseout = ''
            });
        });
    </script>
    <script type="text/javascript">

        function CheckForm() {
            var obj = document.form1.elements;
            if (!checkAttr(obj)) {
                return false;
            }
            $("#form1").submit();
            return true;
        }
    </script>
</body>
</html>
